
#ifdef MCI_FUN

#ifdef FIRST
#define EXTERN 


#else
#define EXTERN  extern

#endif

EXTERN int   mci_rc_err;
EXTERN FATFS fatfs[_DRIVES];		// File system object for each logical drive 
#define WBUFF_SIZE 4096
EXTERN U8    *wBuff;		   	    // [4096]Working buffer 

void mci_disk_chk(void);
void mci_timerproc(void);
void mci_view(int ppath);
void mci_main(char *);

void op_mci_view(int ppath);
void op_mci_main(char *);

int  xatoi (/*mth const*/ char**, long*);
void xitoa (long, signed char, signed char);
void put_dump (const U8*, U64 ofs, int cnt);
void get_line (char*, int len);
void put_rc(FRESULT rc);

void mci_disk_chk(void);
void loader_pro(char *bin_fname);
int  loader_plc_pro(char *bin_fname);
int  loader_run_pro(char *bin_fname);
int  file_hex2bin(char *h_fname,char *b_fname);
#endif

